

local Element = import("./Element.lua");


local Image = commonlib.inherit(Element);

function Image:ctor()
    self:SetName("Image");
end

function Image:RenderContent()
    local src = self:GetAttrStringValue("src");
    local x, y, w, h = self:GetContentPosition();
    if (scr == "") then return end
    self:DrawImage(x, y, w, h, src);
end

return Image;